<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>谷歌弹窗</title>
</head>

<body>


  <button onclick="offUp()">打开弹窗</button>

  <div id="pop" style="display: none;">
    <div class="box-content">
      <!--顶部-->
      <div class="top-box">
        <div class="left-box">
          <div class="text">广告</div>
        </div>
        <div class="right-box" onclick="openFeed()">
          <svg viewBox="0 0 14 24" fill="none">
            <path fill-rule="evenodd" clip-rule="evenodd"
              d="M2 8C3.1 8 4 7.1 4 6C4 4.9 3.1 4 2 4C0.9 4 0 4.9 0 6C0 7.1 0.9 8 2 8ZM2 10C0.9 10 0 10.9 0 12C0 13.1 0.9 14 2 14C3.1 14 4 13.1 4 12C4 10.9 3.1 10 2 10ZM0 18C0 16.9 0.9 16 2 16C3.1 16 4 16.9 4 18C4 19.1 3.1 20 2 20C0.9 20 0 19.1 0 18Z"
              fill="#5F6368"></path>
          </svg>
        </div>
      </div>
      <!--底部-->
      <div class="button-box">
        <div class="content-top">
          <div class="title">Mac与Windows融合</div>
          <div class="content">
            Mac与Window融合。在Mac上运行您喜爱的Windows
            软件。Mac用户的最优之选。充分利用Mac。立即试用!

            Mac与Window融合。在Mac上运行您喜爱的Windows
            软件。Mac用户的最优之选。充分利用Mac。立即试用!

            Mac与Window融合。在Mac上运行您喜爱的Windows
            软件。Mac用户的最优之选。充分利用Mac。立即试用!
          </div>
        </div>
        <div class="content-button">
          <div class="t-logo">我是品牌LOGO</div>
          <div class="t-button" onclick="closePop()">
            <span>关闭</span>
          </div>
          <div class="t-button style-button" onclick="openUrl()">
            <span>打开</span>
          </div>
        </div>
      </div>
      <!--反馈-->
      <div id="feedback" class="feedback" style="display: none;">
        <div class="survey-bg"></div>
        <div class="feed-menu">
          <div class="feed-box">
            <a href="#">
              <div class="p-img">
                <img
                  src="" />
              </div>
              <span>有关此广告的反馈</span>
            </a>
            <a href="#">
              <div class="p-img">
                <img
                  src="">
              </div>
              <span>查看我的 Google 广告设置</span>
            </a>

            <a href="#" onclick="closeFeed()"><span>关闭</span></a>
          </div>
        </div>
      </div>
    </div>
  </div>
  <style>
    #pop {
      position: fixed;
      height: 100vh;
      width: 100vw;
      top: 0;
      left: 0;

      display: flex;
      align-items: center;
      justify-content: center;

      background: rgba(52, 58, 65, 0.6);
    }

    #pop .box-content {
      background-color: #fff;
      border-radius: 6px;
      padding: 0 6px 1px;
      position: relative;
      box-shadow: 0px 8px 12px rgb(60 64 67 / 15%),
        0px 4px 4px rgb(60 64 67 / 30%);


    }

    #pop .top-box {
      width: 100%;
      display: table;
      height: 24px;
      background-color: #fff;
    }

    #pop .top-box .left-box {
      font-size: 12px;
      font-weight: 700;
      font-family: "Roboto", arial, sans-serif;
      color: #202124;
      position: relative;
      height: 25px;
      padding: 12px 16px 0;
      float: left;

      display: table;
    }

    #pop .top-box .right-box {
      opacity: 0.55;
      padding: 12px 2px 0;
      float: right;
      cursor: pointer;
      visibility: visible;
    }

    #pop .top-box svg {
      height: 1.5em;
      width: 1.5em;
      margin-left: -0.3em;
      margin-right: -0.3em;
      vertical-align: middle;
      padding-bottom: 1px;
    }

    /*底部*/
    #pop .button-box {
      width: 746px;
    }

    #pop .button-box .content-top {
      padding: 11.84px 17px;
    }

    /*标题*/
    #pop .button-box .title {
      font-size: 50px;
      color: rgba(0, 0, 0, 0.79);
      font-weight: 500;
      line-height: 1.3;
      letter-spacing: 0.02em;
    }

    /*内容*/
    #pop .button-box .content {
      font-size: 28px;
      padding: 11.84px 0 0;
      color: rgba(0, 0, 0, 0.6);
      letter-spacing: 0.02em;
    }

    /*内如底部*/
    #pop .button-box .content-button {
      display: flex;
      align-items: center;
      padding: 23.68px 18px 28px;
    }

    /*品牌LOGO*/
    #pop .button-box .t-logo {
      width: 100%;
    }

    /*按钮*/
    #pop .button-box .t-button {
      font-size: 15px;
      height: 40px;
      line-height: 40px;
      max-height: 40px;

      border-radius: 4px;
      box-shadow: 0 6px 12px rgb(134 140 150 / 65%);
      cursor: pointer;
      background-color: #fff;
      outline: none;

      box-sizing: border-box;
      font-weight: 400;
      text-align: center;
      width: 50%;
      display: flex;
      align-items: center;
      justify-content: center;

      margin-left: 20px;
    }

    #pop .button-box .style-button {
      color: white;
      background-color: #0088ff;
    }

    /*反馈*/
    #pop .box-content .survey-bg {
      background-color: rgba(0, 0, 0, 0.8);
      bottom: 0px;
      opacity: 1;
      overflow-y: auto;
      position: absolute;
      left: 0px;
      top: 0px;
      width: 100%;
      z-index: 10000;
    }

    #pop .feed-menu {
      position: absolute;
      z-index: 10000;
      top: 15px;
      left: 15px;
    }

    #pop .feed-box {
      padding: 5px 0;
      margin: 0;
      box-shadow: 0 0 3px 3px rgb(0 0 0 / 20%);
      border-radius: 3px;
      -moz-border-radius: 3px;
      -webkit-border-radius: 3px;
      background-color: #ffffff;
    }

    #pop .feed-box a {
      box-sizing: border-box;
      display: table;
      padding: 0 14px;
      width: 100%;
    }

    #pop .feed-box a div {
      display: table-cell;
      vertical-align: middle;
    }

    #pop .feed-box .p-img {
      width: 35px;
    }

    #pop .feed-box img {
      height: 21px;
      margin: 3px 14px 0 0;
    }

    #pop .feed-box a span {
      display: inline-block;
      color: #212121;
      font-family: "Roboto-Regular", arial, sans-serif;
      font-size: 14px;
      margin: 11px 0;
      max-width: 224px;
    }

    /*移动优化*/
    /*移动优化*/
    @media only screen and (max-width: 767px) {
      #pop .button-box {
        width: 90vw;
      }

       #pop .button-box .title {
        font-size: 26px;
      }

       #pop .button-box .content {
        font-size: 14px;
      }

       #pop .button-box .t-logo img[data-v-e37e5560] {
        max-width: 120px;
        max-height: 60px;
      }
    }
  </style>
  </div>

  <script>

    //弹窗默认隐藏，点击开启弹窗
    const offUp = () => {
      let p = document.getElementById("pop");
      p.style.cssText = "";
    };

    //点击关闭弹窗
    const closePop = () => {
      let pd = document.getElementById("pop");
      pd.style.display = "none";
    };

    const openUrl = () => {
      //打开的链接
      location.href = "#";
    };

    //点击开启反馈
    const openFeed = () => {
      let pa = document.getElementById("feedback");
      pa.style.cssText = "";
    };

    //点击关闭反馈
    const closeFeed = () => {
      let pb = document.getElementById("feedback");
      pb.style.display = "none";
    };


  </script>

</body>

</html>